<script setup lang="ts">
import {componentsRegister} from "@/components/st-icon/svg";
import type {SvgIconName} from '@/components/st-icon/svg'

// 定义组件选项
defineOptions({
  name: 'StIcon',
  components: componentsRegister,
})

// 定义组件参数
const props = defineProps<{
  iconName: SvgIconName;
}>()
</script>

<template>
  <component :is="iconName"></component>
</template>

<style scoped lang="scss">

</style>